import java.util.Map;
import java.util.HashMap;
import java.util.Map.Entry;
import java.util.Scanner;
public class Tongjicishu
public static void main(String[]args)
{
    Map map = new HashMap();
    Scanner scan = new Scanner(System.in);
    String[]str = scan.nextLine().split(" ");//
    int[]number = new int[51];
    System.out.println("Enter the number:");
    int num1 = scan.nextInt();
    for(int i = 0);{ number[i] = num1;
                    if(map.containsKey(number[i]))
                    {
                       map.put(number[i],map.get(number[i]));
                    }
                    else
                    {
                       map.put(number[i],1);
                    }
                  }
    Iterable>it = map.entrySet();
    int c = 0;
    for (Entry entry:it)
    {
      System.out.println(entry.getKey()+"appear"+entry.getValue() + "ci");
   
      c += entry.getValue();
    }
      System.out.println(" "+c);
    }
    }
   
      







       
                       
                      
